﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="registerControl.ascx.cs" Inherits="controls_registerControl" %>
<asp:MultiView ActiveViewIndex="0" runat="server" ID="multiview1">
    <asp:View runat="server" ID="view1"><table>
    <tr>
        <td><asp:Label AssociatedControlID="txtHoten" ID="label1" runat="server">Họ tên</asp:Label></td>
        <td><asp:TextBox ID="txtHoTen" runat="server" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtHoTen" CssClass="error" 
                ErrorMessage="RequiredFieldValidator" ToolTip="Trường này là bắt buộc!">*</asp:RequiredFieldValidator>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td><asp:label runat="server" ID="label2" AssociatedControlID="txtDiaChi">Địa chỉ</asp:label></td>
        <td><asp:TextBox id="txtDiaChi" runat="server" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ErrorMessage="RequiredFieldValidator" ControlToValidate="txtDiaChi" ToolTip="Trường này là bắt buộc!">*</asp:RequiredFieldValidator>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td><asp:Label ID="label3" runat="server" AssociatedControlID="txtEmail">Email</asp:Label></td>
        <td><asp:TextBox id="txtEmail" runat="server" />
           
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtEmail" CssClass="error" 
                ErrorMessage="RegularExpressionValidator" ToolTip="Email không đúng định dạng!" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
           
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="RequiredFieldValidator" 
                ToolTip="Trường này là bắt buộc!">* </asp:RequiredFieldValidator>
           
        </td>
        <td>
           
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label Text="Số điện thoại" AssociatedControlID="txtSoDT" runat="server" /></td>
        <td>
            <asp:TextBox runat="server" id="txtSoDT"/></td>   
    </tr>
     <tr>
        <td>
            <asp:Label ID="label4" Text="Trường/Nơi làm việc" AssociatedControlID="txtNoiLamViec" runat="server" /></td>
        <td>
            <asp:TextBox runat="server" id="txtNoiLamViec"/></td>   
    </tr>
    <tr>
        <td>
            <asp:Label ID="label5" Text="Ngày sinh" AssociatedControlID="txtNoiLamViec" runat="server" /></td>
        <td>
            <asp:Calendar ID="Calendar1" runat="server" BackColor="White" 
                BorderColor="Black" DayNameFormat="Shortest" Font-Names="Times New Roman" 
                Font-Size="10pt" ForeColor="Black" Height="220px" NextPrevFormat="FullMonth" 
                TitleFormat="Month" Width="400px">
                <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" 
                    ForeColor="#333333" Height="10pt" />
                <DayStyle Width="14%" />
                <NextPrevStyle Font-Size="8pt" ForeColor="White" />
                <OtherMonthDayStyle ForeColor="#999999" />
                <SelectedDayStyle BackColor="#CC3333" ForeColor="White" />
                <SelectorStyle BackColor="#CCCCCC" Font-Bold="True" Font-Names="Verdana" 
                    Font-Size="8pt" ForeColor="#333333" Width="1%" />
                <TitleStyle BackColor="Black" Font-Bold="True" Font-Size="13pt" 
                    ForeColor="White" Height="14pt" />
                <TodayDayStyle BackColor="#CCCC99" />
            </asp:Calendar>
        </td>   
    </tr>
    <tr>
        <td>
            <asp:Label Text="Giới thiệu" AssociatedControlID="txtGioiThieu" runat="server" />
        </td>
        <td>
            <asp:TextBox runat="server" id="txtGioiThieu"/>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label Text="Hình" runat="server" AssociatedControlID="fupHinh"/>
        </td>
        <td>
            <asp:FileUpload ID="fupHinh" runat="server" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label Text="Tên đăng nhập" AssociatedControlID="txtUsername" runat="server" />
        </td>
        <td>
            <asp:TextBox runat="server" id="txtUsername"/>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ErrorMessage="RequiredFieldValidator" ToolTip="Trường này là bắt buộc!" ControlToValidate="txtUsername">*</asp:RequiredFieldValidator>
        </td>
        <td>
            
        </td>
    </tr>
     <tr>
        <td>
            <asp:Label ID="Label6" Text="Mật khẩu" AssociatedControlID="txtPassword" runat="server" />
        </td>
        <td>
            <asp:TextBox runat="server" id="txtPassword" TextMode="Password"/>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ErrorMessage="RequiredFieldValidator" ToolTip="Trường này là bắt buộc!" ControlToValidate="txtPassword">*</asp:RequiredFieldValidator>
        </td>
        <td>
            
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label7" Text="Nhắc lại mật khẩu" AssociatedControlID="txtConfirmMK" runat="server" />
        </td>
        <td>
            <asp:TextBox runat="server" id="txtConfirmMK" TextMode="Password"/>
           
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="txtPassword" ControlToValidate="txtConfirmMK" 
                ErrorMessage="CompareValidator" ToolTip="Nhập lại mật khẩu không đúng!">*</asp:CompareValidator>
           
        </td>
       
    </tr>
     <tr>
        <td colspan="3" class="style6"><asp:Literal id="msg" runat="server"/></td>
    </tr>
    <tr>
        <td class="style3">
            <asp:Button ID="btnDangKy" runat="server" text="Đăng ký" onclick="btnDangKy_Click" 
               /></td>
     
    </tr>
</table>
    </asp:View>
    <asp:View runat="server" ID="view2">
        <h2>Xin chúc mừng! Bạn đã đăng ký thành công! </h2><a href="Login.aspx">Click vào đây để quay về trang đăng nhập</a>
    </asp:View>
</asp:MultiView>
